package com.zgl.modules.order.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.util.Date;

@Data
@NoArgsConstructor
@AllArgsConstructor
@TableName("t_order")
public class OrderEntity implements Serializable {
    private static final long serialVersionUID = 1L;
    @TableId
    @ApiModelProperty(value = "id")
    private Integer id;
    @ApiModelProperty(value = "订单名称",required = false)
    private String name;
    @TableField(value="create_time")
    @ApiModelProperty(value = "创建时间",required = false)
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone="GMT+8")
    private Date date;
    @ApiModelProperty(value = "用户名",required = false)
    private String username;
    @ApiModelProperty(value = "用户id",required = false)
    private Integer userid;
    @ApiModelProperty(value = "订单状态",required = false)
    private String status;
    @ApiModelProperty(value = "金额",required = false)
    private String goodsPrice;
    @ApiModelProperty(value = "收益",required = false)
    private String profit;
    @ApiModelProperty(value = "删除状态",required = false)
    private String deleteStatus;
    @ApiModelProperty(value = "商品利率",required = false)
    private String goodsRate;
    @ApiModelProperty(value = "商品id",required = true)
    private String goodsId;
    @ApiModelProperty(value = "商品名称")
    private String goodsName;
    @ApiModelProperty(value = "商品期限",required = false)
    private Integer goodsTerm;

}
